package cn.cloud.project.consumer.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

@Data
@RefreshScope // 配置发布之后，动态刷新配置
@Configuration
@ConfigurationProperties(prefix = "student")
public class StudentConfig {

    private String id;

    private String name;

    private String age;

}
